﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace GuessTicketClass.Entity
{
    /// <summary>
    /// 历史号码
    /// </summary>
    [Serializable]
    [XmlRoot("TicketInfoList")]
    public class TicketInfoList : IConfigInfo
    {
        public TicketInfoList()
        {

        }


        private List<TicketInfo> _ticketlist = new List<TicketInfo>();

        /// <summary>
        /// 历史号码
        /// </summary>
        [XmlElement("TicketList")]
        public List<TicketInfo> TicketList
        {
            get
            {
                return _ticketlist;
            }
            set
            {
                this._ticketlist = value;
            }
        }

        /// <summary>
        /// 历史彩票期号排序
        /// </summary>
        /// <param name="model1"></param>
        /// <param name="model2"></param>
        /// <returns></returns>
        public static int PeriodNumberSort(TicketInfo model1, TicketInfo model2)
        {
            int r = model1.PeriodNumber.CompareTo(model2.PeriodNumber);

            return r;
        }
    }
}
